<template>
  <div class="demo-rate-block">
    <span class="demonstration">Default</span>
    <h-rate v-model="value1" />
  </div>
  <div class="demo-rate-block">
    <span class="demonstration">Color for different levels</span>
    <h-rate v-model="value2" :colors="colors" />
  </div>
</template>

<script setup>
import { ref } from "vue";
import HRate from "@/components/Rate/HRate.vue";

const value1 = ref(0);
const value2 = ref(0);
const colors = ref(["#99A9BF", "#F7BA2A", "#FF9900"]); // same as { 2: '#99A9BF', 4: { value: '#F7BA2A', excluded: true }, 5: '#FF9900' }
</script>

<style scoped></style>
